package com.btl.service.ai.biz.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Tim
 * @since 2025-08-11
 */
@Getter
@Setter
@TableName("kw_segment")
@Builder
@AllArgsConstructor
public class KwSegment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分段 id
     */
    @TableId("id")
    private Long id;

    /**
     * 字符数
     */
    @TableField("code_point_count")
    private Integer codePointCount;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 文档 id
     */
    @TableField("document_id")
    private Long documentId;

    /**
     * 分割内容
     */
    @TableField("segment")
    private String segment;

    /**
     * 序号
     */
    @TableField("seq_id")
    private Integer seqId;

    /**
     * 嵌入状态
     */
    @TableField("status")
    private String status;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 子账号 id
     */
    @TableField("child_id")
    private Long childId;

    /**
     * 向量存储 id
     */
    @TableField("vector_id")
    private String vectorId;

    /**
     *  分段标题
     */
    @TableField("title")
    private String title;
}
